
<div id='myattach'>
		<!--input type="button" value="Attach file"  class="buttonProject" id='myfileavatar'/-->  
		<div id='appendbrowser' style="float:left" class="inputWrapper">
		<input  type="button" value="<?=$l_attachfile?>" class="buttonProject" 
			/>
		<input  type="file" name="file[]" title="<?=$l_browserfile?>" id='myfile' multiple="multiple" class="fileInput" onchange="changeBrowsers(this,'<?=$l_browserfile?>')"/></div>
		<!-- input type="button" value="<?=$l_delete?>" class="buttonProject" 
			onclick="deletemyattach()" /-->
	
	<div style="margin:3px 0"></div>
	<div id="uploadresult" style="clear: both">
	<?php 
	if(isset($listattachedit)){
		$temindex = 0;
		while ($rowattach = mysql_fetch_array($listattachedit)) {?>
			<div style="padding:1px">
				<input type="hidden" id="flagattach" name="flagattach[<?=$temindex?>]]" value="true"/>
				<input type="checkbox" onclick="checkAttach(this)" style="margin:1px" checked="checked" filepath="<?=$rowattach[filepath].$rowattach[filereal]?>" />
				<a
					href="attach/downloadattach.php?filepath=<?=$rowattach[filereal]?>&filename=<?=$rowattach[filename]?>&filetype=<?=$rowattach[filetype]?>">
					<?=$rowattach[filename]."(".$rowattach[filetype].") ".$rowattach[filesize]?></a>
				<input type="hidden" name="attachpath[<?=$temindex?>]" value="<?=$rowattach[filepath]?>" />
				<input type="hidden" name="attachreal[<?=$temindex?>]" value="<?=$rowattach[filereal]?>" />
				<input type="hidden" name="attachfile[<?=$temindex?>]" value="<?=$rowattach[filename]?>" />
				<input type="hidden" name="attachtype[<?=$temindex?>]" value="<?=$rowattach[filetype]?>" />
				<input type="hidden" name="attachsize[<?=$temindex?>]" value="<?=$rowattach[filesize]?>" />
				<input type="hidden" name="attachid[<?=$temindex?>]" value="<?=$rowattach[id]?>"/>
			</div>
		<?php $temindex+=1;}
		}
		?>
	
	</div>
	<div id='attachloading'></div>
</div>
